<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <link rel="stylesheet" href="css/bootstrap.min.css">
        <script src="js/vue.js"></script>
        <script src="js/axios.min.js"></script>
    </head>
    <body>
        <div id="app">
            <table class="table">
            <tr>
                <td>门店编号</td>
                <td>门店名称</td>
                <td>门店地址</td>
                <td>门店电话</td>
            </tr>
            <tr v-for="v in store">
                <td>{{v.ID}}</td>
                <td>{{v.name}}</td>
                <td>{{v.address}}</td>
                <td>{{v.tel}}</td>
            </tr>
        </table>
        </div>
        
    </body>
</html>
<script>
    var app=new Vue({
        el:"#app",
        data:{
            store:[],
        },methods:{
            
        },created:function(){
            axios.get("http://127.0.0.1:8088/list").then(function(res){
                console.log(res.data.data)
                app.store=res.data.data
            })
        }
    })
</script>